package com.jlcon.nas.biz.aria.dto;

import java.util.List;

import lombok.Data;

@Data
public class Aria2ActiveTask {
	private String bitfield;
    private Bittorrent bittorrent;
    private String completedLength;
    private String connections;
    private String dir;
    private String downloadSpeed;
    private List<FileInfo> files;
    private String gid;
    private String infoHash;
    private int numPieces;
    private int numSeeders;
    private int pieceLength;
    private boolean seeder;
    private String status;
    private String totalLength;
    private String uploadLength;
    private String uploadSpeed;
    
    @Data
    public static class Bittorrent {
    	private List<List<String>> announceList;
//        private Info info;
//        private String mode;
    }
    
    @Data
    public static class Info {
        private String name;
    }
    
    @Data
    public static class FileInfo {
    	private String completedLength;
        private String index;
        private String length;
        private String path;
        private boolean selected;
        private List<UriItem> uris;
    }
    
    @Data
    public static class UriItem {
        private String status;
        private String uri;
    }
}